package com.ws.shop.entity;

import java.util.HashMap;
import java.util.Map;

public class Smtp extends BaseEntity{
	private int id;
	private String name;
	private String password;
	private String smtp;
	private String mail;
	private int port;
	private int auth;
	private int ssls;
	private int state;
	
	public final static Map<String,String> STATE_DESCS = new HashMap<String,String>();
	
	static{
		STATE_DESCS.put("0", "禁用");
		STATE_DESCS.put("1", "启用");
	}
	
	public Smtp() {
		super();
	}
	
	public Smtp(int id, String name, String password, String smtp, String mail,
			int port, int auth, int ssls, int state) {
		super();
		this.id = id;
		this.name = name;
		this.password = password;
		this.smtp = smtp;
		this.mail = mail;
		this.port = port;
		this.auth = auth;
		this.ssls = ssls;
		this.state = state;
	}

	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getSmtp() {
		return smtp;
	}
	public void setSmtp(String smtp) {
		this.smtp = smtp;
	}
	public String getMail() {
		return mail;
	}
	public void setMail(String mail) {
		this.mail = mail;
	}
	public int getPort() {
		return port;
	}
	public void setPort(int port) {
		this.port = port;
	}
	public int getAuth() {
		return auth;
	}
	public int getSsls() {
		return ssls;
	}

	public void setSsls(int ssls) {
		this.ssls = ssls;
	}

	public void setAuth(int auth) {
		this.auth = auth;
	}
	public int getState() {
		return state;
	}
	public void setState(int state) {
		this.state = state;
	}
	
	
}